package com.tanhua.dubbo.api;

import com.tan.model.domain.announcement;
import com.tanhua.dubbo.mapper.AnnouncementMapper;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class AnnouncementApiimpl implements AnnouncementApi{
    @Autowired
    private AnnouncementMapper announcementMapper;

    @Override
    public List<announcement> getAnnouncements(Integer page, Integer pagesize) {
        List<announcement> announcements = announcementMapper.selectList(null);
         return announcements;

    }
}

